package Administrator.AdministratorMainFrame.AdministratorMainFrameView.ConfigureContestPane;

import java.awt.Font;

import javax.swing.*;

public class SettingsPane extends JPanel
{
    public SettingsPane()
    {
    	this.setFont(new Font("", Font.PLAIN, 14));
    	this.setLayout(null);
		this.contestTitleLabel = new JLabel();
		contestTitleLabel.setFont(new Font("", Font.BOLD, 14));
		contestTitleLabel.setText("Contest Title");
		contestTitleLabel.setBounds(83, 39, 97, 24);
		this.add(contestTitleLabel);

		contestTitleFormattedTextField = new JFormattedTextField();
		contestTitleFormattedTextField.setFont(new Font("", Font.PLAIN, 14));
		contestTitleFormattedTextField.setText(this.contestTitle);
		contestTitleFormattedTextField.setBounds(186, 39, 256, 24);
		this.add(contestTitleFormattedTextField);

		final JLabel defaultAnswerLabel = new JLabel();
		defaultAnswerLabel.setFont(new Font("Dialog", Font.BOLD, 14));
		defaultAnswerLabel.setText("Judge' Default Answer");
		defaultAnswerLabel.setBounds(83, 105, 164, 24);
		this.add(defaultAnswerLabel);

		defaultAnswerFormattedTextField = new JFormattedTextField();
		defaultAnswerFormattedTextField.setFont(new Font("", Font.PLAIN, 14));
		defaultAnswerFormattedTextField.setText(this.defaultAnswer);
		defaultAnswerFormattedTextField.setBounds(253, 106, 256, 24);
		this.add(defaultAnswerFormattedTextField);

		updateButton = new JButton();
		updateButton.setText("Update");
		updateButton.setBounds(127, 290, 99, 23);
		this.add(updateButton);

		cancelButton = new JButton();
		cancelButton.setText("Cancel");
		cancelButton.setBounds(318, 290, 99, 23);
		this.add(cancelButton);
    }
    
    private JLabel contestTitleLabel;
    public  JFormattedTextField contestTitleFormattedTextField;
    public  JLabel defaultAnswerLabel;
    public  JFormattedTextField defaultAnswerFormattedTextField;
    public  JButton updateButton;
    public  JButton cancelButton;
    
    public static final String contestTitle = new String("Program Contest");
    public static final String defaultAnswer = new String("Read Problem again, No explain");
}
